<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$appConfigs.title}</title>

    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/{$page_theme | default: 'default'}/easyui.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/style/my.css">
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/javascript/my.js"></script>
    
</head> 
<body onpageshow="resetPagination('dg')">
    {datagrid id="dg" datasource="/invest/PriceMonitorService/findAll.do" view="i_price_monitor"}
    {form id="dlg" view="i_price_monitor" }
    
    <script>
    field_formatters.status=function (value, row, index){
		if(value == 0){
			return "无效";
		} else if(value == 1){
			return "有效";
		}
    }
    function showQuestions() {
	    var row = getDatagrid('dg').datagrid('getSelected');
	    if(row) {
	    	window.parent.openTab(row.name + '的问题','/invest/survey/question.shtml?survey_id='+row.survey_id);
	    } else {
			alert('没有选择问卷！');
	    }
    }
    </script>
</body>
</html>